package com.lightheart.sphr.xiaobinggan.carousel

import android.widget.TextView
import com.lightheart.sphr.xiaobinggan.R
import com.lightheart.sphr.xiaobinggan.base.BaseActivity
import com.lightheart.sphr.xiaobinggan.module.home.presenter.HomePresenter
import com.lightheart.sphr.xiaobinggan.utils.UMExpandLayout


class CarouselActivity : BaseActivity<HomePresenter>() {

    override fun getLayoutId() = R.layout.activity_carousel

    override fun initInjector() {
    }

    override fun initView() {
        val tvMore = findViewById<TextView>(R.id.tv_more)
        val settingAboutContent = findViewById<UMExpandLayout>(R.id.setting_about_content)
        tvMore.setOnClickListener {
            if (settingAboutContent.isExpand) {
                settingAboutContent.collapse()
            } else {
                settingAboutContent.expand()
            }
        }
    }

}